// IdleState.java
class IdleState implements State {
    @Override
    public void onKeyPress(ControlPanel panel, char key) {
        System.out.println("用户开始输入密码...");
        panel.clearInput();
        panel.setState(new InputtingState());
    }
}